/**
 * Created by JERY on 2017/7/17.
 */
define(['bootstrap-treeview', 'css!assets/boostrap-treeview/bootstrap-treeview.css'], function () {
    var ko = {};
    ko.bootstrapTreeViewModel = function (options) {
        var self = this;
        self.defaults = {
            highlightSelected: true,
            selectedBackColor: 'RGB(245,245,245)',
            selectedColor: 'RGB(51,51,51)',
            levels: 0
        };
        self.params = $.extend({}, self.defaults, options || {});
        self.reloadTree = function (data) {

        };
        self.getSelectedNodes = function () {
            return self.treeview(true).getSelected();
        };
    };
    return ko;
});